﻿///TaiCrear.as 该类为多圆环形类
//vesion 1.0
//author 夏天的树人

package org.summerTree.graphics
{

	import flash.geom.Point;
	public class TaiGrear extends Base
	{

		private var gear:GearWheel;
		private var taiji:TaiJi;
		public function TaiGrear()
		{
			gear=new GearWheel();
            addChild(gear);		
				
		}
		override public  function clone():*
		{
			return new TaiGrear();
		}
		
		//绘制一个多圆
		/*radius 半径
		 *fillColor 填充颜色
		 *alpha 透明度
		 */
		public function CreatTaiGrear(long_radius:Number,short_radius:Number,n:int=15,fillcolor:uint=0xffffff,alpha:Number=1):void
		{			
			gear.CreatGearWheel(long_radius,short_radius,n,fillcolor,alpha);				
			taiji=new TaiJi(short_radius);
			addChild(taiji);
		}
		
		override public function clear():void
		{
			 gear.clear();
		     taiji.clear();
		}
			 
	}
}